package org.scirp.ijmis.service.copyright.impl;

import java.util.List;

import org.scirp.ijmis.dao.copyright.ICopyrightDAO;
import org.scirp.ijmis.po.copyright.Copyright;
import org.scirp.ijmis.service.copyright.ICopyrightService;

public class CopyrightServiceImpl implements ICopyrightService {

	private ICopyrightDAO copyrightDAO;

	public long addCopyright(Copyright copyright) {
		return getCopyrightDAO().saveCopyright(copyright);
	}

	public Copyright deleteCopyright(Copyright copyright) {
		return getCopyrightDAO().deleteCopyright(copyright);
	}

	public List<Copyright> selectAll() {
		return getCopyrightDAO().selectAll();
	}

	public Copyright selectById(long id) {
		return getCopyrightDAO().selectById(id);
	}

	public boolean updateCopyright(Copyright copyright) {
		return getCopyrightDAO().updateCopyright(copyright);
	}

	public Copyright selectByPaperId(long id) {
		return getCopyrightDAO().selectByPaperId(id);
	}

	public void setCopyrightDAO(ICopyrightDAO copyrightDAO) {
		this.copyrightDAO = copyrightDAO;
	}

	public ICopyrightDAO getCopyrightDAO() {
		return copyrightDAO;
	}

}
